package drds.binlog.spi;

/**
 * Use java service provider mechanism to provide {@link MetricsService}.
 * <pre>
 * Example:
 * {@code
 *     ServiceLoader<MetricsServiceProvider> providers = ServiceLoader.load(MetricsServiceProvider.class);
 *     List<MetricsServiceProvider> list = new ArrayList<MetricsServiceProvider>();
 *     for (MetricsServiceProvider provider : providers) {
 *         list.add(provider);
 *     }
 * }
 * </pre>
 */
public interface MetricsServiceProvider
{
    MetricsService getMetricsService();

}
